﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SellerProject
{
    public partial class marketing_test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            abc();
        }

        public void abc()
        {
            try
            {
                

                //mt.Market_tag_add("套我想逃", "淘我想淘会员折扣");

                //mt.Targetuser_add(int.Parse(mt.tagid), "jonnykay,omi87497495");

                //mt.Promotion_add("9604285167", mt.tagid);

                //Response.Write("success");
            }
            catch (Exception err)
            {
                Response.Write(err.Message);
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            marketing_test mt = new marketing_test();
            mt.sessionkey = Session["sessionKey"].ToString();
            mt.taggets();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            marketing_test mt = new marketing_test();
            mt.sessionkey = Session["sessionKey"].ToString();
            mt.Market_tag_add("测试tag", "测试tag测试");
            //string tagid = mt.checkusertag();
            //mt.Targetuser_add(int.Parse(tagid), "jonnykay");
            //mt.Promotion_add("9604285167", mt.tagid);
        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            marketing_test mt = new marketing_test();
            mt.sessionkey = Session["sessionKey"].ToString();
            string tagid = mt.checkusertag();
            mt.Targetuser_add(663413, "jonnykay");
        }

        protected void Button6_Click(object sender, EventArgs e)
        {
            marketing_test mt = new marketing_test();
            mt.sessionkey = Session["sessionKey"].ToString();
            string tagid = mt.checkusertag();
            mt.Promotion_add("9604285167", tagid);
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            marketing_test mt = new marketing_test();
            mt.sessionkey = Session["sessionKey"].ToString();
            checkpromotion(Session["sessionKey"].ToString());
        }
    }
}